package com.huoshan.im.server.constant;

import java.time.Duration;

/**
 * @author: 火山九日
 * @since: 2020-11-10
 **/
public class CacheConstants {

    /**
     * 7天过期
     */
    public final static Duration PUB_WEEK_EXPIRY = Duration.ofDays(7);

    /**
     * 30天过期
     */
    public final static Duration PUB_MONTH_EXPIRY = Duration.ofDays(30);

    /**
     * 用户登陆app的设备和时间戳
     */
    public final static String USER_LOGIN_APP_PREFIX = "user-login-app:";

    /**
     * 连续中转消息失败告警加锁(控制通知间隔)
     */
    public final static String SEND_TO_REPEATER_ERR = "send-to-repeater-err";

    /**
     * 未找到repeater健康实例告警加锁(控制通知间隔)
     */
    public final static String REPEATER_SERVICE_NOT_FOUND = "repeater-serv-not-found-err";


}
